﻿using Presentation;
using Infrastructure;

namespace StatisticCalculatorApplication
{
    public class StatsApplication
    {
        private const string txtLogName = "log.txt";
        private Presenter presenter;
        public void start(IView view)
        {
            presenter = new Presenter(view, new TextLogger(txtLogName));
        }
        public void updateView(IView view)
        {
            presenter.setupView(view);
        }
    }
}
